<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="icon" type="text/css" href="icon.ico" />

    <?php foreach($conf['css'] as $k=>$v){ ?>
    <link rel="stylesheet" type="text/css" href="/shop/shop/Public/Home/css/<?php echo ($v); ?>.css" />
    <?php }?>

    <script src="/shop/shop/Public/Home/js/jquery-1.10.1.min.js" type="text/javascript" charset="utf-8"></script>

    <?php foreach($conf['js'] as $k=>$v){ ?>
    <script src="/shop/shop/Public/Home/js/<?php echo ($v); ?>.js" type="text/javascript" charset="utf-8"></script>
    <?php }?>

</head>

<body>
<!--头部开始-->
<div id="top">
    <!--头部灰条就开始-->
    <div class="topbox">
        <div class="main">
            <div class="topleft fl">
                <a href="javascript:;">欢迎来到冰雨商城</a>
                <a href="<?php echo U('Home/Index/index');?>">商城首页</a>
                <a href="#">收藏本站</a>
                <a href="#">帮助中心</a>
                <a href="#" class='last'><i></i>手机商城</a>
            </div>
            <div class="topright fr">
                <div class="login fl">
                    <a href="<?php echo U('Home/Login/index');?>">登录</a>
                    <a href="<?php echo U('Home/Login/register');?>">注册</a>
                </div>
                <span class="fl">|</span>
                <div class="fcode fl">

                    <a href="<?php echo U('Home/Cart/index');?>">我的订单</a>
                </div>
            </div>
        </div>
    </div>
    <!--头部灰条结束-->

    <!--logo区域开始-->
    <div class="logoRegion">
        <div class="main">
            <div class="logo">
                <a href=""><img style="width: 200px;height: 100px;" src="/shop/shop/Public/Home/logo.png"/></a>
            </div>
            <div class="seachRegion">
                <div class="seach fl">
                    <form action="" method="post">
                        <input type="text" class="seachtxt fl" value="新品上市" />
                        <input type="submit" class="btn" value="" />
                    </form>
                    <p class="searchkey">
                        <a href="">四六级耳机低至5折</a>
                        <a href="">四六级耳机低至5折</a>
                        <a href="">四六级耳机低至5折</a>
                    </p>

                </div>
                <div class="topshopcart fr" style="">
                    <a href="" class="header-cart"><i></i>我的购物车<span class="cart-size">(<?php echo ($cart_goods_num); ?>)</span></a>
                    <div class="cart-tips" style="margin: 0px;padding: 0px;text-align: center;height: auto">
                       <?php if(isset($_SESSION['uid'])){ ?>
                        <ul style="margin: 0px;padding: 0px;">
                             <?php if(is_array($sessionData)): foreach($sessionData as $k=>$v): ?><li style="line-height: 40px;"><a href="<?php echo u('Home/Content/index',['gid'=>$v['id']]);?>"><?php echo ($v['name']); ?></a></li><?php endforeach; endif; ?>
                        </ul>
                        <?php  }else{ ?>
                        <ul style="margin: 0px;padding: 0px;">
                           <li>
                               请 <a href="<?php echo U('Home/Login/index');?>">登录</a>后查看您的购物车。
                           </li>
                        </ul>

                        <?php } ?>
                    </div>
                </div>
            </div>

        </div>
    </div>
    <!--logo区域结束-->
    <!--导航开始-->
    <div class="navbox">



        
	<script src="/shop/shop/Public/Home/layer/layer.js"></script>
	<link rel="stylesheet" href="/shop/shop/Public/Home/layer/skin/default/layer.css">
	</div>
	<!--导航结束-->
	<div class="clear"></div>

	</div>
	<!--头部结束-->
	<!--中间开始-->
	<div id="content">

		<div class="cont">
			<div class="main">
				<div class="content-left">
					<div class="box">
						<div class="zhezhao"></div>
						<div class="sekuai"></div>
						<div class="smallTu"></div>
						<a href="javascript:;" class="shang">&lt;</a>
						<div class="list1">
							<ul>
								<li><img src="/shop/shop/Public/Home/images/400.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/401.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/402.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/400.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/401.jpg" alt=""></li>
							</ul>
						</div>
						<a href="javascript:;" class="xia">&gt;</a>

						<div class="bgTu"></div>
						<div class="bgTuHide">
							<ul>
								<li><img src="/shop/shop/Public/Home/images/800.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/801.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/802.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/800.jpg" alt=""></li>
								<li><img src="/shop/shop/Public/Home/images/801.jpg" alt=""></li>
							</ul>

						</div>
					</div>
				</div>
				<div class="content-right">

					<div class="tit"><?php echo ($data['gname']); ?></div>
					<div class="description">安全三系统 6GB内存+128GB存储 高通骁龙820芯片 智慧双摄2.0 银行级安全芯片 360OS 2.0 QC闪充3.0</div>
					<div class="pirve">￥ <?php echo ($data['shopprice']); ?></div>


					<?php if(is_array($temp)): foreach($temp as $k=>$vo): ?><div class="category">
							<h4><?php echo ($k); ?></h4>
							<ul>
								<?php if(is_array($vo)): foreach($vo as $n=>$m): ?><li gtid="<?php echo ($m['gtid']); ?>" taname="<?php echo ($k); ?>"><?php echo ($m['gtvalue']); ?></li><?php endforeach; endif; ?>
							</ul>
						</div><?php endforeach; endif; ?>

					<script>
						$(function () {
							$('.category li').click(function () {
								var leng = <?php echo count($temp) ?>;
								if($('.zhong').length!=leng){
									return false;
								}
								//异步获取货品数量
								var gid = <?php echo ($_GET['gid']); ?>;
								var combine = '';
								$.each($('.zhong'),function(){
									combine +=$(this).attr('gtid') + ',';
								});
								$.post("<?php echo u('ajaxGetTotal');?>",
										{gid:gid,combine:combine},
										function (res) {
											console.log(res);
											if (res.valid){
												//返回1，说明有库存(此注释不能放在上一行大括号后)
												$('#inventory').text('库存为：'+res.inventory);
												$('.nobdr h6').addClass('allow').removeClass('disable');
											}else{
												//返回0，说明无库存(此注释不能放在上一行大括号后)
												$('#inventory').text('库存为：0');
												$('.nobdr h6').addClass('disable').removeClass('allow');
											}

										},
										'json');
							});
						})
					</script>





					<div class="num">
						<h5>数量</h5>
						<a href="javascript:;" class="num_l">-</a>
						<input type="text" value="1" id="total"/>
						<a href="javascript:;" class="num_r">+</a>
						<span id="inventory" style="margin-left: 10px;line-height: 2em"></span>
					</div>
					<style>
						.allow{
							background: #fa5437;
						}
						.disable{
							background: #CCCCCC;
						}
					</style>
					<div class="nobdr">
						<h6 class="allow"><a href="javascript:;">加入购物车</a></h6>
					</div>
					<script>
						$(function () {
							//购物车事件
							$('.nobdr .allow').click(function () {
								//判断如果是灰色样式的时候不再继续执行
								if($(this).is('.disable')){
									return false;
								}
								var leng = <?php echo count($temp)?>;
								if($('.zhong').length!=leng){
									layer.msg('请选择规格', function(){
										//关闭后的操作
									});
									return false;
								}
								//组合post发送的数据：商品gid、购买数量、其他参数
								var data = {
									'gid':<?php echo $_GET['gid']?>,
								'num':$('#total').val(),
										'options':{}
							};
								$.each($('.zhong'),function(k,v){
									data.options[$(this).attr('taname')] = $(this).text();
								})
								$.post("<?php echo u('ajaxAddCart');?>",
										{data:data},
										function (res) {
											//跳转到购物车页面
											location.href = "<?php echo u('Home/Cart/index');?>";
										})
							})
						})
					</script>

					<div class="houdun">
						<h3>保障</h3>
						<p><i class="o1"></i>360商城发货&售后</p>
						<p><i class="o2"></i>满99元包邮</p>
						<p><i class="o3"></i>7天无理由退货</p>
						<p><i class="o4"></i>15天免费换货</p>
					</div>
				</div>
			</div>
		</div>

		<div class="desc" id="xijie">
			<div class="desctab" >
				<div class="main">
					<ul>
						<li><a href="#xijie">产品详情</a><span>|</span></li>
						<li><a href="#guige">规格参数</a><span>|</span></li>
						<li><a href="#wenti">常见问题</a></li>
					</ul>
				</div>
			</div>

			<div class="con" >
				<img src="/shop/shop/Public/Home/images/t0159dae288111b9b39.jpg" />
				<img src="/shop/shop/Public/Home/images/t0159dae288111b9b39.jpg" />
				<img src="/shop/shop/Public/Home/images/t0159dae288111b9b39.jpg" />
				<img src="/shop/shop/Public/Home/images/t0159dae288111b9b39.jpg" />
				<img src="/shop/shop/Public/Home/images/t0159dae288111b9b39.jpg" />
			</div>
			<div class="con main" id="guige">
				<h1>产品参数</h1>
				<table cellpadding="0" cellspacing="0" border="1">
					<tbody>
					<tr>
						<td class="wd207" colspan="2">主体</td>
					</tr>
					<tr>
						<td class="wd207">品牌</td>
						<td>360手机</td>
					</tr>
					<tr>
						<td class="wd207">型号</td>
						<td>1509-A00（Q5 Plus)</td>
					</tr>
					<tr>
						<td class="wd207">上市时间</td>
						<td>2016年8月</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">基本信息</td>
					</tr>
					<tr>
						<td class="wd207">机身颜色</td>
						<td>流光金</td>
					</tr>
					<tr>
						<td class="wd207">机身尺寸（mm）</td>
						<td>156.5*80*8.3</td>
					</tr>
					<tr>
						<td class="wd207">机身重量（g）</td>
						<td>175.0g</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">操作系统</td>
					</tr>
					<tr>
						<td class="wd207">操作系统</td>
						<td>360 OS Android 6.0</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">主芯片</td>
					</tr>
					<tr>
						<td class="wd207">CPU型号</td>
						<td>骁龙820</td>
					</tr>
					<tr>
						<td class="wd207">CPU频率</td>
						<td>Kryo 2.15GHz x 4</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">网络支持</td>
					</tr>
					<tr>
						<td class="wd207">双卡机类型</td>
						<td>双卡双待单通</td>
					</tr>
					<tr>
						<td class="wd207">SIM卡类型</td>
						<td>Nano SIM</td>
					</tr>
					<tr>
						<td class="wd207">网络制式</td>
						<td>全网通</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">存储</td>
					</tr>
					<tr>
						<td class="wd207">ROM</td>
						<td>128GB UFS2.0 机身存储</td>
					</tr>
					<tr>
						<td class="wd207">RAM</td>
						<td>4GB LPDDR4 双通道内存</td>
					</tr>
					<tr>
						<td class="wd207">存储卡</td>
						<td>支持MicroSD（TF）</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">屏幕</td>
					</tr>
					<tr>
						<td class="wd207">主屏幕尺寸（英寸）</td>
						<td>6.0英寸</td>
					</tr>
					<tr>
						<td class="wd207">分辨率</td>
						<td>1920*1080(FHD)</td>
					</tr>
					<tr>
						<td class="wd207">屏幕材质类型</td>
						<td>三星（SAMSUNG）Super AMOLED</td>
					</tr>
					<tr>
						<td class="wd207">屏幕色彩</td>
						<td>1600万</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">前置摄像头</td>
					</tr>
					<tr>
						<td class="wd207">前置摄像头</td>
						<td>1300万像素</td>
					</tr>
					<tr>
						<td class="wd207">前摄光圈大小</td>
						<td>f/2.0</td>
					</tr>
					<tr>
						<td class="wd207">美颜技术</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207">拍照特点</td>
						<td>美颜</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">后置摄像头</td>
					</tr>
					<tr>
						<td class="wd207">后置摄像头</td>
						<td>双1300万像素</td>
					</tr>
					<tr>
						<td class="wd207">摄像头光圈大小</td>
						<td>f/2.0</td>
					</tr>
					<tr>
						<td class="wd207">闪光灯</td>
						<td>LED灯</td>
					</tr>
					<tr>
						<td class="wd207">美颜技术</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">电池信息</td>
					</tr>
					<tr>
						<td class="wd207">电池容量（mAh）</td>
						<td>3700</td>
					</tr>
					<tr>
						<td class="wd207">电池是否可拆卸</td>
						<td>否</td>
					</tr>
					<tr>
						<td class="wd207">闪充</td>
						<td>支持QC3.0涡轮闪充</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">娱乐功能</td>
					</tr>
					<tr>
						<td class="wd207">mic数量</td>
						<td>2个</td>
					</tr>
					<tr>
						<td class="wd207">喇叭数量</td>
						<td>1个</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">数据接口</td>
					</tr>
					<tr>
						<td class="wd207">数据传输接口</td>
						<td>WIFI、蓝牙、WiFi热点、OTG接口</td>
					</tr>
					<tr>
						<td class="wd207">NFC/NFC模式</td>
						<td>不支持</td>
					</tr>
					<tr>
						<td class="wd207">耳机接口类型</td>
						<td>3.5mm</td>
					</tr>
					<tr>
						<td class="wd207">充电接口类型</td>
						<td>Type-C</td>
					</tr>
					<tr>
						<td class="wd207" colspan="2">手机特性</td>
					</tr>
					<tr>
						<td class="wd207">指纹识别</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207">GPS</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207">电子罗盘</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207">霍尔感应器</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207">陀螺仪</td>
						<td>支持</td>
					</tr>
					<tr>
						<td class="wd207">其他</td>
						<td>距离感应、呼吸灯、光线感应</td>
					</tr>
					</tbody>
				</table>
			</div>
			<div class="con main" id="wenti">
				<h2>常见问题</h2>
				<dl>
					<dt><i>1、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>
				<dl>
					<dt><i>2、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>
				<dl>
					<dt><i>3、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>
				<dl>
					<dt><i>4、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>
				<dl>
					<dt><i>5、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>
				<dl>
					<dt><i>6、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>
				<dl>
					<dt><i>7、</i><em></em>订单提交成功后还可以修改收货信息吗？</dt>
					<dd><u></u>订单付款之前，您可以进入“我的订单”，在订单详情页内修改收货信息。付款之后将不可修改收货信息。</dd>
				</dl>

			</div>
		</div>

	</div>
	</div>
	<!--中间结束-->




<!--尾部开始-->
<div class="mod-footer">
    <div class="foot-bannerw">
        <div class="foot-banner clearfix">
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days7"><i class="icon1">7</i>7天无理由退货</a>
            </div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_days15"><i class="icon2">15</i>15天免费换货</a>
            </div>
            <div class="banner-item"><i class="icon3">包</i>满99元包邮</div>
            <div class="banner-item">
                <a href="#" target="_blank" data-monitor="home_foot_moblie"><i class="icon4">服</i>手机特色服务</a>
            </div>
        </div>
    </div>
    <div class="foot-containerw">
        <div class="foot-container clearfix">
            <dl class="foot-con"> <dt data-monitor="home_foot_freshman">帮助中心 </dt>
                <dd data-monitor="home_help_freshman">
                    <a target="_blank" href="#" rel="nofollow">用户注册</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">用户登录与密码找回</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">购买指南</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">支付方式</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">配送与说明</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_help">售后服务 </dt>
                <dd data-monitor="home_help_help">
                    <a target="_blank" href="#">7 日无理由退货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">质量问题 15 日内换货</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">保修条款</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">服务流程</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">安迷之家</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_guide">特色服务 </dt>
                <dd data-monitor="home_help_guide">
                    <a target="_blank" href="#" rel="nofollow">F码通道</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">免费试用</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">360 生态</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">一元夺宝</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_tuiguang">推广合作 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">商品入驻</a>
                </dd>
                <dd>
                    <a target="_blank" href="#" rel="nofollow">大客户采购</a>
                </dd>
            </dl>
            <dl class="foot-con"> <dt data-monitor="home_foot_try">关注360商城 </dt>
                <dd data-monitor="home_help_try">
                    <a target="_blank" href="#" rel="nofollow">360商城大事记</a>
                </dd>
            </dl>

        </div>
    </div>
    <div class="footer-copyright">冰雨商城 ©2016-2018 BYCMS工作室版权所有 京ICP备000001号-43</div>
</div>
<!--尾部结束-->

<!--右边底部返回顶部-->
<div class="slidebar" id="slidebar">
    <ul>
        <li class="topback">
            <a href="javascript:;"></a>
        </li>
    </ul>
</div>
<!--右边底部返回顶部结束-->


<!--左侧楼层结束-->
</body>

</html>